// Copyright (C) 2012 by Johann Duscher <jonny.dee@gmx.net>
// 
// This file is part of barcodeart-pp.
//
// barcodeart-pp is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// barcodeart-pp is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with barcodeart-pp. If not, see <http://www.gnu.org/licenses/>.

#include "barcodeart/qrcode/qrencode/EncoderPlugin.hpp"

#include "barcodeart/qrcode/qrencode/Encoder.hpp"
#include "barcodeart/qrcode/qrencode/EncoderConfigView.hpp"

#include <barcodeart/qrcode/EncoderConfig.hpp>


Q_EXPORT_PLUGIN2(qrcode_libqrencode, barcodeart::qrcode::qrencode::EncoderPlugin)

namespace barcodeart
{

namespace qrcode
{

namespace qrencode
{

EncoderPlugin::EncoderPlugin()
{
}

const char* EncoderPlugin::getName() const
{
    return "qrencode";
}

const char* EncoderPlugin::getDesciption() const
{
    return "TODO";
}

IEncoderConfig::Ptr EncoderPlugin::createConfig() const
{
    return IEncoderConfig::Ptr(new EncoderConfig);
}

IEncoder::Ptr EncoderPlugin::createEncoder() const
{
    return IEncoder::Ptr(new Encoder);
}

IEncoderConfigView::Ptr EncoderPlugin::createConfigView() const
{
    return IEncoderConfigView::Ptr(new EncoderConfigView(getPluginContext()));
}

}

}

}
